package bola;

import javax.swing.*;

public class Bola {

    public static void main(String[] args) {
        System.out.println("Program untuk perhitungan bola :");
        String jari = "";
        jari = JOptionPane.showInputDialog("Masukkan jari-jarinya :");
        int r = Integer.parseInt(jari);
        System.out.println("Jari-jari = "+(r));
        System.out.println("Luas permukaannya = "+((3.14*r*r)*4));
        System.out.println("Volumenya = "+(((3.14*r*r*r)*4)/3));
    }
}
